import Vue from 'vue'
var hub = new Vue()

export function emit (name, data) {
  hub.$emit(name, data)
}

export function on (name, fn) {
  hub.$on(name, fn)
}
